import React, { Component } from "react";
import {View, Image, TouchableWithoutFeedback,StyleSheet} from "react-native";
import * as RootNavigation from '../../App'

class BackBarItem extends Component{
  constructor(props) {
    super(props);
    this.state={}
  }
  render() {
    return (
      <TouchableWithoutFeedback onPress={()=>this.props.navigation.pop()}>
        <View style={styles.backIconBox}>
          <Image style={styles.backIcon} source={require('../img/icon_back_black.png')}></Image>
        </View>
      </TouchableWithoutFeedback>
    )
  }
}

export default module=BackBarItem

const styles=StyleSheet.create({
  backIconBox:{
    width:40,
    height:40,
    flexDirection: 'row',
    justifyContent: 'center',
    alignItems: 'center'
  },
  backIcon:{
    width:8,
    height:15
  },
})
